const CHANNEL_KEY='hmtt_channel'
// 保存数据
export const setChannel=(list)=>{
window.localStorage.setItem(CHANNEL_KEY,JSON.stringify(list))
}
// 获取数据
export const getChannel=()=>{
    return JSON.parse(window.localStorage.getItem(CHANNEL_KEY))
    }
// 删除频道
export const removeChannel=()=>{
    window.localStorage.removeItem(CHANNEL_KEY)
}